<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<jsp:useBean id="randomId" class="com.lmpop.frame.util.RandomID" scope="page" />
<%@page import="com.lmpop.trade.tb_commpara.*" %>
<%@page import="com.lmpop.trade.ts_custclass.*" %>
<%
	String cust_id = randomId.GenTradeId();
	String user_id = randomId.GenTradeId();
	Map custclassinfoMap = new Hashtable();
	custclassinfoMap.put("class_type","1");
	Ts_custclassInfo custclassinfo = new Ts_custclassInfo();
	String pub_user_id="";	
	if( session.getAttribute("session_user_id") != null )
	{
		pub_user_id = session.getAttribute("session_user_id").toString();
	}
	Tb_commparaInfo tb_commparaInfo=new Tb_commparaInfo();
	String _income = tb_commparaInfo.getSelectItem("20","");	
	String custclass_select =  custclassinfo.getSelectString(custclassinfoMap,"");
%>
<html>
  <head>
    <title>会员管理</title>
	
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="<%=request.getContextPath()%>/dwr/engine.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/dwr/util.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/dwr/interface/Ts_areaInfo.js"></script>	
	<script language="javascript" type="text/javascript" src="/program/plugins/calendar/WdatePicker.js"></script>
	<script type="text/javascript" src="js_personal.js"></script>
</head>

<body>
	<h1>新增个人会员</h1>
	
	<!--
	<table width="100%" align="center" cellpadding="0" cellspacing="0" class="dl_so">
        <tr>
          <td width="9%" align="center"><img src="/program/admin/index/images/ban_01.gif" /></td>
          <td width="91%" align="left">
		  <h4>-----------------</h4>
		  <span>1----------------。</span><br/>
		  <span>2----------------。</span>
		  </td>
        </tr>
      </table>
      <br/>
	  -->
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">

			<tr>
				<td colspan="4">
			   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;<span style="font-size:14px;font-weight:bold;">个人基本信息</span>			</td>
		    </tr>
			
			<tr>
				<td align="right" width="10%">
					登陆账号<font color="red">*</font>
				</td>
			<td  width="30%"><input name="user_name" id="user_name" type="text" maxlength="20"  /></td>
			<td align="right" width="10%">
				登陆密码<font color="red">*</font>
			</td>
			<td >
			<input name="passwd" id="passwd" type="password" maxlength="20" />
			</td>
			</tr>
			
			<tr>
			<td align="right" width="10%">
					真实姓名<font color="red">*</font>
				</td>
			<td  width="30%" colspan="3"><input name="cust_name" id="cust_name" type="text" maxlength="20"  /></td>
			<input name="real_name" id="real_name" type="hidden" maxlength="20"  />
			</tr>
			

			<input name="org_id" id="org_id" type="hidden" maxlength="20" />
			<input name="role_code" id="role_code" type="hidden" maxlength="20"  />
			<input name="user_id" id="user_id" type="hidden" value="<%=user_id%>"/>
			<input name="user_state" id="user_state" type="hidden" value="0"/>
			

			
		<tr>
			<td align="right" width="10%">
				会员昵称:
			</td>
			<td width="30%"><input name="nike_name" id="nike_name" type="text" maxlength="20"/></td>

			<td align="right" width="10%">
				会员级别<font color="red">*</font>
			</td>
			<td>
			<select name="user_class" style="width:145px" id="user_class">
					<%=custclass_select%>
			</select>
			<input type="hidden" name="cust_class" id="cust_class" value="" />
		</tr>
		
		<tr>
			<td align="right" width="10%">
				个人相片:
			</td>
			<td  colspan="3">
				<jsp:include page="/program/inc/uploadImgInc.jsp">
					<jsp:param name="attach_root_id" value="<%=cust_id%>" />
				</jsp:include>
			</td>
		</tr>
		
			<tr>
				<td align="right" width="10%">
					服务开始时间:
				</td>
				<td  >
				
				<input name="cust_start_date" type="text" id="cust_start_date" class="Wdate" value="2000-1-1" onclick="WdatePicker({maxDate:'#F{$dp.$D(\'cust_end_date\',{d:-1})}',readOnly:true})" size="15" />
				
				</td>

				<td align="right" width="10%">
					服务结束时间:
				</td>
				
				<td >
					<input name="cust_end_date" id="cust_end_date" type="text" class="Wdate" value="2050-1-1" onclick="WdatePicker({minDate:'#F{$dp.$D(\'cust_start_date\',{d:1})}',readOnly:true})" size="15"/>
				</td>
			</tr>

			<tr>
				<td colspan="4">
			   &nbsp;&nbsp;<img src="/program/admin/images/infotip.gif" border="0">&nbsp;&nbsp;<span style="font-size:14px;font-weight:bold;">个人详细信息</span>			</td>
		    </tr>
			
		<tr>
			<td align="right" width="10%">
				固话:
			</td>
			<td width="30%"><input name="phone" id="phone" type="text"  maxlength="20"/></td>
			<td align="right" width="10%">
				手机:
			</td>
			<td><input name="cellphone" id="cellphone" type="text"  maxlength="20"/></td>			
		</tr>
		
		<tr>
			<td align="right" width="10%">
				Email:
			</td>
			<td><input name="email" id="email" type="text"  maxlength="20"/></td>
			<td align="right" width="10%">
				传真:
			</td>
			<td><input name="fax" id="fax" type="text"  maxlength="20"/></td>
		</tr>

		
		<tr>
			<td align="right" width="10%">
				QQ:
			</td>
			<td><input name="qq" id="qq" type="text"  maxlength="20"/></td>
			<td align="right" width="10%">
				MSN:
			</td>
			<td><input name="msn" id="msn" type="text"  maxlength="20"/></td>			
		</tr>
		<tr>
	<td align="right" width="10%">
				邮政编码:
			</td>
			<td><input name="post_code" id="post_code" type="text"  maxlength="10"/></td>

			<td align="right" width="10%">
				是否已婚:
			</td>
			<td>				<input name="marry" id="marry" value="0" checked type="radio" />已婚
				<input name="marry" id="marry" value="1" type="radio" />未婚</td>			
		</tr>
		<tr>

		<td align="right" width="10%">
				所在地区:
			</td>
			<td width="40%">
				

				<select name="province" id="province" onclick="setCitys(this.value)">
				  <option value="">省份</option> 
				</select>
				<select name="eparchy_code" id="eparchy_code" onclick="setAreas(this.value)">
				  <option value="">地级市</option> 
				 </select>
				<select name="city_code" id="city_code" style="display:inline" >
				 <option value="">市、县级市、县</option> 
				</select>
					<input type="hidden" name="area_attr_bak" id="area_attr_bak" value="" />
					<input type="hidden" name="area_attr" id="area_attr" value="" />
				

			</td>		

			<td align="right" width="10%">
				地址:
			</td>
			<td><input name="address" id="address" type="text" size="30"  maxlength="100"/></td>
						
		</tr>
		
		<tr>
			<td align="right" width="10%">
				性别:
			</td>
			<td>
			<input name="sex" id="sex" value="0" checked type="radio" />男
			<input name="sex" id="sex" value="1"  type="radio" />女</td>
			<td align="right" width="10%">
				出生日期:
			</td>
			<td><input name="birth" id="birth"  size="15" type="text" onFocus="WdatePicker()" style="width:145px" class="Wdate" maxlength="15" value="" /></td>			
		</tr>
		

		<tr>
			<td align="right" width="10%">
				血型:
			</td>
			<td>
			<select name="blood_type" id="blood_type" >
			<option value="">请选择</option>	
			<option value="0">O型</option>
			<option value="1">A型</option>
			<option value="2">B型</option>
			<option value="3">AB型</option>
			
			</select></td>
			<td align="right" width="10%">
				教育程度:
			</td>
			<td><input name="career" id="career" type="text"  maxlength="50"/></td>			
		</tr>
		

		
		<tr>
			<td align="right" width="10%">
				工作:
			</td>
			<td><input name="job" id="job" type="text"  maxlength="50"/></td>
		<td align="right" width="10%">
				爱好:
			</td>
			<td><input name="hobby" id="hobby" type="text"  maxlength="50"/></td>			
		</tr>
		

		
		<tr>
			<td align="right" width="10%">
				收入:
			</td>
			<td><select name="income" id="income" ><%=_income%></select></td>

			<td align="right" width="10%">
				备注:
			</td>
			<td><input name="remark" id="remark" type="text"  maxlength="50"/></td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="4615" />
				<input type="hidden" name="cust_id" id="cust_id" value="<%=cust_id%>"/>
				<input type="hidden" name="state_code" id="state_code" value="a"/>
				<input type="hidden" name="cust_type" id="cust_type" value="1"/>
				<input type="hidden" name="user_type" id="user_type" value="2" />
				<input type="hidden" name="pub_user_id" id="pub_user_id" type="text" value="<%=pub_user_id%>"/>
				<input type="button" class="buttoncss" name="tradeSub" value="提交" onclick="subForm();"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
